package com.itc.bpm.service;

import com.itc.bpm.dto.QuartzJobDto;
import org.quartz.SchedulerException;

import java.io.IOException;

/**
 * 流程定时任务执行工具类
 */
public interface QuartzService {
    /**
     * 开启定时任务
     * @param quartzJobDto
     * @throws Exception
     */
    public void startTaskJob( QuartzJobDto quartzJobDto)  throws Exception;

    /**
     * 暂停定时任务
     * @param taskId
     * @throws SchedulerException
     */
    public void shutdown(String taskId) throws SchedulerException;

    /**
     * 删除定时任务
     * @param taskId
     * @throws IOException
     * @throws SchedulerException
     */
    public void del(String taskId) throws IOException, SchedulerException;
}
